package quick.start.core.connect.request;

import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;

public class GetRequestWrapper extends RequestWrapper {
    @Override
    public HttpUriRequest genRequest() {
        return new HttpGet(HttpParams.appendToUrl(params, url));
    }

    public static class Builder extends DefaultRequestBuilder {
        @Override
        public RequestWrapper build() {
            GetRequestWrapper reqWrapper = new GetRequestWrapper();
            preBuild(reqWrapper);
            return reqWrapper;
        }
    }
}
